<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of principal
 *
 * @author JorgeLuis
 */
class Principal extends CI_Controller {

    function __construct() {
        parent::__construct();
        session_start();
    }

    function index() {
        $data['title'] = "Menú Principal";
        $data['main'] = 'inicio/frm_principal';
        $this->load->vars($data);
        $this->load->view('/inicio/header');
        $this->load->view('frm_principal_admin');
    }

    function paciente() {
        $data['title'] = "Menú Principal";
        $data['main'] = 'inicio/frm_principal';
        $this->load->vars($data);
        $this->load->view('/inicio/header');
        $this->load->view('frm_principal_paciente');
    }
  function medico() {
        $data['title'] = "Menú Principal";
        $data['main'] = 'inicio/frm_principal';
        $this->load->vars($data);
        $this->load->view('/inicio/header');
        $this->load->view('frm_principal_medico');
    }
}

?>
